$( document).ready( function() {
    $('.scroll-pane').jScrollPane();
    $('.scroll-pane').resize( function() {
        refreshScrolls();
    });
});
function refreshScrolls() {
    var pane = $('.scroll-pane');
    var api = pane.data('jsp');
    api.reinitialise();
}
